﻿using System;
using System.Collections.Generic;
using System.Text;

namespace FileLog
{
    internal static  class ThrowHelper
    {
        internal static void ThrowIfNull(object? argument, string paramName)
        {
            if (argument == null)
            {
                Throw(paramName);
            }
        }

        private static void Throw(string paramName)
        {
            throw new ArgumentNullException(paramName);
        }
    }
}
